x86: factor out common PV emulation code
authorWei Liu <wei.liu2@citrix.com>
Mon, 5 Jun 2017 11:26:18 +0000 (12:26 +0100)
committerWei Liu <wei.liu2@citrix.com>
Wed, 21 Jun 2017 13:23:22 +0000 (14:23 +0100)
commit46b488cb661bca81559b24883ffd22602d71a65a
tree50f9f50f56efa12ebc555d291db5d9078a1ad80d
parent48d0c822640f8ce4754de16f1bee5c995bac7078
x86: factor out common PV emulation code

We're going to split PV emulation code into several files. This patch
extracts the functions needed by them into a dedicated file.

The functions are now prefixed with "pv_emul_" and exported via a
local header file.

While at it, change bool_t to bool.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/pv/Makefile
xen/arch/x86/pv/emulate.c [new file with mode: 0644]
xen/arch/x86/pv/emulate.h [new file with mode: 0644]
xen/arch/x86/traps.c